Update Chat
Updates a chat's title, privacy, or metadata.
Usage
import { v0 } from 'v0-sdk'const result = await v0.chats.update({ chatId: 'chat_abc123',})console.log(result)API Signature
Request
Path Parameters
The unique identifier of the chat.
Request Body
A new title to assign to the chat.
Updated visibility setting for the chat.
User-defined key-value metadata. Merged with existing entries. Pass null for a value to delete that key, or pass null for the whole field to delete all entries. Maximum 50 active entries.
Response
Unique chat identifier.
Chat title, if generated.
Visibility setting of the chat.
ISO timestamp of when the chat was created.
ISO timestamp of when the chat was last updated.
ID of the user who created the chat.
Associated Vercel project ID, if any.
User-defined key-value metadata.
Whether the caller has write access to this chat.
Resume Chat Stream
Resumes consumption of the active assistant generation as Server-Sent Events. If the latest message has already finished, returns a closing chat-state event. The response is `text/event-stream`; each event is `data: <JSON>\n\n` where the JSON conforms to ChatStreamEvent.
Update Chat Files
Creates, updates, or deletes files for a chat. Pass null to delete. This requires the chat's preview to be running.